package com.phillong.factory.factorymethod.creator;

import java.util.ArrayList;

/**
 * @author zhangpeng
 */
public abstract class Pizza {

    public String name;

    String dough;

    String sauce;

    ArrayList topping = new ArrayList();

    void prepare(){
        System.out.println("Preparing " + name);
        System.out.println("Tossing dough...");
        System.out.println("Adding sauce...");
        System.out.println("Adding Topping");
        for (int i = 0; i < topping.size(); i++){
            System.out.println("   " + topping.get(i));
        }
    }

    void bake() {
        System.out.println("Bake for 25 minutes at 350");
    }

    void cut() {
        System.out.println("Cutting the pizza into diagonal slices");
    }

    void box() {
        System.out.println("Place pizza in official PizzaStore box");
    }

    public String getName(){
        return name;
    }
}
